package com.fjut.client.userInfo;

import com.fjut.model.user.UserInfo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "service-user")
public interface UserInfoFeignClient {

    @GetMapping("/fjut/user/userInfo/getUserInfoById/{id}")
    UserInfo getUserInfoById(@PathVariable("id") Long id);

    @GetMapping("/fjut/user/userInfo/getAllUserInfo")
    List<UserInfo> getAllUserInfo();
}
